home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / pctchnqs / 1990 / number6 / cputest.c < prev    next >
Text File  |  1990-11-08  |  446b  |  24 lines

  1.  
  2. /* test.c: Tests the cputype() function.  Prints message
  3.  * telling the results.
  4.  * Copyright (C) 1990 Nicholas Wilt
  5.  */
  6.  
  7. #include <stdio.h>
  8.  
  9. main()
  10. {
  11.   printf("cputype detects an ");
  12.   switch (cputype()) {
  13.     case 0:
  14.       printf("8086.  I sympathize.\n");
  15.       break;
  16.     case 1:
  17.       printf("80286.  You\'re getting there!\n");
  18.       break;
  19.     case 2:
  20.       printf("80386.  You\'re cookin\'!");
  21.       break;
  22.   }
  23. }
  24.